﻿using System.Collections.Generic;
using System.Linq;

namespace etdc
{
    internal static class Extensions
    {
        public static byte[] XorWith(this IEnumerable<byte> source, IEnumerable<byte> data)
        {
            return data.Zip(source, (b1, b2) => (byte) (b1 ^ b2)).ToArray();
        }
    }
}